//
//  AppDelegate.m
//  iOSApp01
//
//  Created by yxh on 2020/4/26.
//  Copyright © 2020 yxh. All rights reserved.
//

#import "AppDelegate.h"
#import "ViewController.h"
#import "GTVideoViewController.h"
#import "GTRecommendViewController.h"

@interface AppDelegate ()

@end

@implementation AppDelegate

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
    // Override point for customization after application launch.
    self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
    
    UITabBarController *tabBerC = [[UITabBarController alloc] init];
    
    
    ViewController *viewC1 = [[ViewController alloc] init];
    
    GTVideoViewController *viewC2 = [[GTVideoViewController alloc] init];
    
    GTRecommendViewController *viewC3 = [[GTRecommendViewController alloc] init];
  
    
    
    UIViewController *viewC4 = [[UIViewController alloc] init];
    viewC4.view.backgroundColor = [UIColor yellowColor];
    viewC4.tabBarItem.title =@"我的";
    
    [tabBerC setViewControllers:@[viewC1,viewC2,viewC3,viewC4]];
    
        UINavigationController *navigationC = [[UINavigationController alloc] initWithRootViewController:tabBerC];
    
    self.window.rootViewController = navigationC;
    [self.window makeKeyAndVisible];
    return YES;
}

@end
